package com.jade.core.common.exception;

import cn.hutool.http.HttpStatus;

/**
 * BaseException 自定义通用异常
 *
 * @author Arnold 409196007@qq.com
 * @version V2.0
 * @date 2022/05/13 19:31
 **/
public class BaseException extends RuntimeException {


    private int code = HttpStatus.HTTP_INTERNAL_ERROR;

    public BaseException(String message) {
        super(message);
    }

    public BaseException(int code, String message) {
        super(message);
        this.code = code;
    }

}